// argsAsArray(function (greeting, name, punctuation) {return greeting + ', ' + name + (punctuation || '!');}, ['Hello', 'Ellie', '!']);

function argsAsArray(fn, arr) {
    //
    return fn(...arr);
    //可以通过apply调用函数，然后
    return fn.apply(this,arr);
}



var a="";
let b=functionFunction('Hello')("ba");
//console.log(a);
console.log(b);
function functionFunction(str) {

    
    
    return (x)=>{return str+","+x};
}
